<!--
 * @Author: Bennty
 * @Date: 2024-07-25 15:03:32
 * @LastEditors: 
 * @LastEditTime: 2024-07-25 15:03:59
 * @Description: 请填写简介
-->
<template>
    <el-dialog v-model="props.visible" title="申请周期管理" @close="handleClose">
        <el-form :model="formData" ref="formRef">
            <el-form-item label="五星客户申请周期" prop="levelFive">
                <el-input v-model.number="formData.levelFive" placeholder="请输入" >
                    <template #append>天</template>
                </el-input>
            </el-form-item>
            <el-form-item label="四星客户申请周期" prop="levelFour">
                <el-input v-model.number="formData.levelFour" placeholder="请输入" >
                    <template #append>天</template>
                </el-input>
            </el-form-item>
            <el-form-item label="三星客户申请周期" prop="levelThree">
                <el-input v-model.number="formData.levelThree" placeholder="请输入" >
                    <template #append>天</template>
                </el-input>
            </el-form-item>
            <el-form-item label="二星客户申请周期" prop="levelTwo">
                <el-input v-model.number="formData.levelTwo" placeholder="请输入" >
                    <template #append>天</template>
                </el-input>
            </el-form-item>
            <el-form-item label="一星客户申请周期" prop="levelOne">
                <el-input v-model.number="formData.levelOne" placeholder="请输入" >
                    <template #append>天</template>
                </el-input>
            </el-form-item>
        </el-form>
        <template #footer>
            <div class="dialog-footer">
                <el-button  type="primary" >通过</el-button>
                <el-button type="danger" @click="handleClose">拒绝</el-button>
            </div>
        </template>
    </el-dialog>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import type { FormInstance } from 'element-plus';

const props = defineProps(['visible']);
const emits = defineEmits(['close']);
const formRef = ref<FormInstance>();
const formData = ref({
    levelOne: undefined,
    levelTwo: undefined,
    levelThree: undefined,
    levelFour: undefined,
    levelFive: undefined
});
const handleClose = ()=>{
    formRef.value?.resetFields();
    emits('close');
};
</script>

<style scoped>
.dialog-footer{
    display: flex;
    justify-content: center;
}
</style>